package com.edais.persistence;

import java.util.List;
import java.util.Map;

import com.edais.domain.InterfaceWhite;
import com.edais.domain.User;

public interface UserCheckMapper {
	
	/**
	 * 用户token
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public int updateUserByUserId(Map<String,Object> param) throws Exception;
	
	/**
	 * 查询用户token
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public String queryUserByUserId(Long userId) throws Exception;

	/**
	 *  根据token查询用户
	 * @param token
	 * @return
	 */
	public List<User> getUsersByToken(String token) throws Exception;
	
	/**
	 * 接口白名单列表
	 * @return
	 * @throws Exception
	 */
	public List<InterfaceWhite> getAllInterfaceWhite(Map<String,String> map) throws Exception;

	/**
	 * 用户是否存在异常
	 * @param userId
	 * @return
	 */
	public int isExistExceptionUser(Long userId) throws Exception;
	
	
}
